/**
 * http 工具
 * @file
 * @date 2019-02-22 14:17:26
 */

layui.define(function (exports) {
    var config = {
        'permit': [
            {
                name: 'complaint',
                url: '/work/modify/ajax/check/complaint',
                type: 'GET',
                params: {
                    orderId: null,
                    workId: null
                },
                desc: '检查投诉次数'
            },
            {
                name: 'abnormal',
                url: '/work/modify/ajax/check/abnormal',
                type: 'GET',
                params: {
                    orderId: null,
                    workId: null
                },
                desc: '检查异常次数'
            },
            {
                name: 'check',
                url: '/work/check/permit',
                type: 'GET',
                lock: false,
                params: {
                    permit: null, // 权限 id
                    moduleId: null
                },
                desc: '检查操作权限'
            },
        ],
        'area': [
            {
                name: 'cityListByCompanyId',
                url: '/area/company/city/list.action',
                type: 'GET',
                params: {
                    companyId: null
                },
                desc: '根据公司 id 获取下属城市'
            },
            {
                name: 'cityList',
                url: '/area/city/all/list.action',
                type: 'GET',
                params: {
                },
                desc: '获取所有城市'
            }
        ],
        'purpose': [
            {
                name: 'save',
                url: '/order/purpose/save.action',
                type: 'POST',
                params: {
                    channelId: null,
                    cityId: null,
                    latitude: null,
                    longitude: null,
                    productId: null,
                    provinceId: null,
                    servCategId: null,
                    street: null,
                    telephone: null,
                    userName: null
                },
                desc: '保存意向单'
            },
        ],
        'master': [
            {
                name: 'getDetail',
                url: '/staff/master/detail',
                type: 'GET',
                lock: false,
                loading: false,
                params: {
                    masterId: null
                },
                desc: '获取工程师详情'
            },
        ]
    }

    exports('oms_api_config', config);
});